using System;
using UnityEngine;

namespace AdvancedInspector
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field)]
	public class BackgroundAttribute : Attribute
	{
		private Color color = Color.clear;

		public Color Color
		{
			get
			{
				return color;
			}
			set
			{
				color = value;
			}
		}

		public BackgroundAttribute(float r, float g, float b)
			: this(r, g, b, 1f)
		{
		}

		public BackgroundAttribute(float r, float g, float b, float a)
		{
			color = new Color(r, g, b, a);
		}
	}
}
